package cn.wjh.business.mapper;

import java.util.List;

import cn.wjh.business.domain.Competition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 比赛Mapper接口
 *
 * @author jiraWu
 * @date 2023-10-17
 */
public interface CompetitionMapper extends BaseMapper<Competition> {
	/**
	 * 查询比赛
	 *
	 * @param competitionId 比赛主键
	 * @return 比赛
	 */
	public Competition selectCompetitionByCompetitionId(Long competitionId);

	/**
	 * 查询比赛列表
	 *
	 * @param competition 比赛
	 * @return 比赛集合
	 */
	public List<Competition> selectCompetitionList(Competition competition);

	/**
	 * 新增比赛
	 *
	 * @param competition 比赛
	 * @return 结果
	 */
	public int insertCompetition(Competition competition);

	/**
	 * 修改比赛
	 *
	 * @param competition 比赛
	 * @return 结果
	 */
	public int updateCompetition(Competition competition);

	/**
	 * 删除比赛
	 *
	 * @param competitionId 比赛主键
	 * @return 结果
	 */
	public int deleteCompetitionByCompetitionId(Long competitionId);

	/**
	 * 批量删除比赛
	 *
	 * @param competitionIds 需要删除的数据主键集合
	 * @return 结果
	 */
	public int deleteCompetitionByCompetitionIds(Long[] competitionIds);
}
